package com.mate.cloud.lottery.constants;


public class LotteryConstants {

    /**
     * 表示正在抽奖的用户标记
     */
    public final static String DRAWING="drawing:%s";
    /**
     * 活动标记 LOTTERY:lotteryID
     */
    public final static String LOTTERY_ID="lottery:id:%s";
    public final static String LOTTERY="lottery";
    /**
     * 奖品数据  LOTTERY_PRIZE:lotteryID:PrizeId
     */
    public final static String LOTTERY_PRIZE="lottery:prize:%s";

    public final static String LOTTERY_PRIZE_LOTTERY_ID="lottery:prize:lottery:id:%s:prize:id:%s";
    /**
     *  默认奖品数据  DEFAULT_LOTTERY_PRIZE:lotteryID
     */
    public final static String DEFAULT_LOTTERY_PRIZE="default:lottery:prize:%s";

    public enum PrizeTypeEnum {
        THANK(-1), NORMAL(1), UNIQUE(2);
        private int value;

        private PrizeTypeEnum(int value) {
            this.value = value;
        }

        public int getValue() {
            return this.value;
        }
    }

    /**
     * 奖项缓存：lottery:item:lottery:id
     */
    public final static String LOTTERY_ITEM="lottery:item:%s";
    /**
     * 默认奖项： default:lottery:item:lottery:id
     */
    public final static String DEFAULT_LOTTERY_ITEM="default:lottery:item:%s";

}

